package com.fduss.mazegame.server;

import com.fduss.mazegame.core.maze.generator.TestMap;
import com.fduss.mazegame.core.unit.End;
import com.fduss.mazegame.core.unit.Hero;
import com.fduss.mazegame.core.unit.Monster;

/**
 * The serverspec used by the client to create a server that uses the
 * test maze.
 *
 * @Date 2017/9/27 21:42
 */
public class ServerSpecTest extends ServerSpec {

    public ServerSpecTest(int trailCapacity) {
        super(trailCapacity);
        this.map = new TestMap().generateMap();
        this.end = new End(map.getPlace(3, 4));
        this.hero = new Hero(map.getPlace(0, 0));
        this.monsters = new Monster[2];
        this.monsters[0] = new Monster(map.getPlace(3, 7));
        this.monsters[1] = new Monster(map.getPlace(1, 7));
        this.trailCapacity = trailCapacity;
    }

    public String toString() {
        return "TEST";
    }
}
